package org.qs.webservice.service;



/**
 * 用户接口
 * @ClassName: UserService 
 * @author 
 * @date 
 *
 */
public interface UserService{
	/**
	 * 注册
	 * @Title: registerUser 
	 * @param user_name 用户名
	 * @param phone 手机号
	 * @param key 验证码
	 * @param password 密码
	 * @param device_identifier 终端唯一标识
	 * @param promot 内置渠道
	 * @param channel 登录注册渠道
	 * @return   
	 * @return String    
	 * @throws
	 */
	public String registerUser(String user_name,String mobile_num,String  password,String device_identifier,String promot,String email,String regist_ip,String sign); 
	/**
	 * 用户登录
	 * @param user_name
	 * @param password
	 * @param device_identifier
	 * @return
	 */
	public String customLogin(String user_name,String password,String device_identifier,String sign);
	
	/**
	 * 根据token获取个人信息
	 * @Title: getMe 
	 * @param oldToken
	 * @return   
	 * @return String    
	 * @throws
	 */
	public String getMe(String token,String device_identifier);
	/**
	 * 发送邮箱验证
	 * @param email
	 * @return
	 */
	public String sendEmail(String email,int type);
	/**
	 * 验证邮箱的有效性
	 * @param email
	 * @return
	 */
	public String checkEmail(String email);
	/**
	 * 验证用户名可用
	 * @param email
	 * @return
	 */
	public String checkUser(String user_name);
	/**
	 * 修改用户信息
	 * @param user_name
	 * @param mobile_num
	 * @param email
	 * @return
	 */
	public String resetUserInfo(String user_name,String mobile_num,String email,String token,String device_identifier,String new_password,String old_password);
	/**
	 * 验证sign
	 * @param sign
	 * @param type 0 重置密码
	 * @return
	 */
	public String checkSign(String sign,int type);
	/**
	 * 重置密码
	 * @param passwd
	 * @return
	 */
	public String resetPasswd(String sign,String passwd);
	public String getRecharge(int type,int pages,int contents,String device_identifier,String token);
	public String ssoLogin(String user_identifier, String device_identifier,
			String nick_name, String source, String promot, String tokenStr,
			String image_url,String regist_ip);
	public String addThirdLogin(String user_identifier, String device_identifier,
			String nick_name, String source, String promot, String tokenStr,
			String image_url,String regist_ip);
	public String addBindLogin(String user_identifier, String device_identifier,
			String nick_name, String source, String promot, String tokenStr,
			String image_url,String regist_ip,String sign);
}